
# 运算符
l = 'love'
i = 'i ' + l + ' you'
i = f'i {l} you'
i = 'i {} you'.format(l)
i = 'i {l} you'.format(l = l)
print(i)

a = True
b = False

print(a and b)

a = 99990977
a = bin(a)
print(a)


a = 60
b = 13
print(a & b)
print(a | b)
print(a ^ b)


for i in range(1,10):
    for j in range(1, i+1):
        print(f'{i}' + 'x' + f'{j}' + '=' + f'{ i * j}', end=" ")
    print()



# 裴波那契函数
num = int(input("请输入一个数字"))
n1 = 0
n2 = 1

count = 1
if num <=0:
    print("请输入一个非0的正整数")
else:
    print(f'{n1},{n2}', end=",")
    while count <= num:
        n3 = n1 + n2
        print(n3,end=",")
        n1,n2 = n2, n3
        count += 1

